package com.chen.controller;

import com.chen.service.CourseRecordService;
import com.chen.vo.Result;
import com.chen.vo.param.CourseParam;
import com.chen.vo.param.RecordParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:chenao
 * @DATE:2022/4/9 20:12
 */
@RestController
@RequestMapping("record")
public class CourseRecordController {

    @Autowired
    private CourseRecordService courseRecordService;

    @PostMapping("user")
    public Result getUserRecord(@RequestBody RecordParam param){
        return courseRecordService.getUserRecord(param);
    }
}
